
import store from "@/store";

export default {
    computed:{
        isSuperAdmin(){
            let {role} = store.state.userInfo;  // [1,2,3];
            return role == 1;
        },
        isAdmin(){
            let {role} = store.state.userInfo;  // [1,2,3];
            return role == 2;
        },
        isGuest(){
            let {role} = store.state.userInfo;  // [1,2,3];
            return role == 3;
        }
    }
}